﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace MShop.Core.Domain
{
    
    
    public partial class ShopUsersFav
    {
        public string FavThumbImageUrl
        {
            get
            {
                if (string.IsNullOrEmpty(this.FavImageUrl))
                {
                    return FavImageUrl;
                }
                try
                {
                    return "/uploads/" + this.FavImageUrl.Split('/')[2] + "/thumb_" + this.FavImageUrl.Split('/')[3];
                }
                catch
                {
                    return string.Empty;
                }
            }
        }
    }

    
}